package com.gitee.ipo.system.entity.search;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class SearchDTO implements Serializable {


    /**
     * 代码/简称
     */
    private List<String> secCodes;

    /**
     * 标题
     */
    private List<String> title;

    private List<String> titleOr;

    private List<String> titleNot;

    /**
     * 正文
     */
    private List<String> content;

    private List<String> contentOr;

    private List<String> contentNot;

    private Date startDate;

    private Date endDate;

    /**
     * 当前页
     */
    private int pageNum = 1;

    private int pageSize = 20;

    /**
     * 排序字段
     */
    private String sortField;

    /**
     *
     */
    private String order = "desc";

    public SearchDTO() {
        this.secCodes = new ArrayList<>();
        this.content = new ArrayList<>();
        this.sortField = "pubdate";
    }
}
